var initialOptions = { banner:[],hot:[]};
function home(state = initialOptions, action) {
  //2.创建数据中心
  console.log(action.payload)
  switch (action.type) {
    case "HOMEBANNER": 
      return { ...state, banner:action.payload };
      case "HOMEHOT": 
      return { ...state, hot:action.payload };

    default: 
      return state;
  }
}

export default home;
